<%-- 
    Document   : beean
    Created on : 18/09/2012, 09:36:47 PM
    Author     : Dell
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
<jsp:useBean id="lado1" scope="session" class="org.mypackage.tri.CalcularLados" />
<jsp:useBean id="lado2" scope="session" class="org.mypackage.tri.CalcularLados" />
<jsp:useBean id="lado3" scope="session" class="org.mypackage.tri.CalcularLados" />
<jsp:useBean id="calculo" scope="session" class="org.mypackage.tri.CalcularLados" />
         
        <jsp:setProperty name="lado1" property="lado1"/>
       <jsp:setProperty name="lado2" property="lado2"/>
       <jsp:setProperty name="lado3" property="lado3"/>
       <jsp:setProperty name="calculo" property="calculo" />
        <h1>
            El dato es,
            <jsp:getProperty name="lado1" property="resultado" />
           
        </h1>
    </body>
</html>
